#include <sys/shm.h>
#include <cstring>
#include <errno.h>
#include <unistd.h>

#include <iostream>
using namespace std;
#define MEM_SIZE 4096
#define PATH_NAME "/home/zsh/linux/vscode" 
#define PROJ_ID 0x648 

key_t CreatKey()
{
    key_t key=ftok(PATH_NAME,PROJ_ID);
    if(key<0)
    {
        cerr<<"ftok"<<strerror(errno)<<endl;
        exit(1);
    }
    return key;
}